package org.firebug.spring.boot.swagger.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping(value = "/user")
public class UserController {
    @RequestMapping(value = "/query/{id}", method = {RequestMethod.GET})
    public String query(@PathVariable Long id, Model model) {
        model.addAttribute("id", id);
        model.addAttribute("name", "felix");
        return "/user-query";
    }
}
